package com.dfrobot.demo.domain.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "product")
public class Product {
    @Id
    @Column(name = "product_id")
    private Integer productId;

    private String model;

    private String sku;

    private String upc;

    private String ean;

    private String jan;

    private String isbn;

    private String mpn;

    private String location;

    private Integer quantity;

    @Column(name = "stock_status_id")
    private Integer stockStatusId;

    private String image;

    @Column(name = "manufacturer_id")
    private Integer manufacturerId;

    private Boolean shipping;

    private BigDecimal price;

    private Integer points;

    @Column(name = "tax_class_id")
    private Integer taxClassId;

    @Column(name = "date_available")
    private Date dateAvailable;

    private BigDecimal weight;

    @Column(name = "weight_class_id")
    private Integer weightClassId;

    private BigDecimal length;

    private BigDecimal width;

    private BigDecimal height;

    @Column(name = "length_class_id")
    private Integer lengthClassId;

    private Boolean subtract;

    private Integer minimum;

    @Column(name = "sort_order")
    private Integer sortOrder;

    private Boolean status;

    private Integer viewed;

    @Column(name = "date_added")
    private Date dateAdded;

    @Column(name = "date_modified")
    private Date dateModified;

    private Integer maxquantity;

    private Integer source;

    @Column(name = "landing_tag")
    private String landingTag;

    @Column(name = "stock_status")
    private Short stockStatus;

    /**
     * 90天销量
     */
    @Column(name = "product_90_quantity")
    private Integer product90Quantity;

    /**
     * 90天UV
     */
    @Column(name = "product_90_uv")
    private Integer product90Uv;

    @Column(name = "product_90_quantity_rank")
    private Integer product90QuantityRank;

    @Column(name = "product_90_uv_rank")
    private Integer product90UvRank;

    @Column(name = "product_90_times")
    private Integer product90Times;

    @Column(name = "product_90_times_rank")
    private Integer product90TimesRank;
}